Skip to content

Commit

Permalink
Fixed tcpip functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sasagawa888 committed Jul 29, 2024
1 parent a08e6bf commit c604d0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -3062,6 +3062,8 @@ int f_create_client_socket(int arglist, int th)

arg1 = car(arglist); //port number
arg2 = cadr(arglist); // IP address
if(length(arglist) != 2)
error(WRONG_ARGS,"create-client-socket", arglist, th);
if(!integerp(arg1))
error(NOT_INT,"create-client-socket", arg1,th);
if(!stringp(arg2))
Expand Down Expand Up @@ -3096,6 +3098,8 @@ int f_create_server_socket(int arglist, int th)
int arg1,sock0,sock1,res;

arg1 = car(arglist); // port number
if(length(arglist) != 1)
error(WRONG_ARGS,"create-server-socket",arglist,th);
if(!integerp(arg1))
error(NOT_INT,"create-server-socket",arg1,th);

Expand Down

0 comments on commit c604d0c

Please sign in to comment.