- Updated tcp_demo example.

git-svn-id: svn://kolibrios.org@8521 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
superturbocat2001 2021-01-05 15:29:30 +00:00
parent 41c3cb567f
commit 38cd0f8a9a

View File

@ -8,7 +8,7 @@ char msg2='\0';
int main()
{
sockaddr addr={AF_INET4, PORT(23) , 0, 0};
struct sockaddr addr={AF_INET4, PORT(23) , 0, 0};
int sk1=socket(AF_INET4, SOCK_STREAM, IPPROTO_TCP);
printf("Open socket: %d. Error: %d\n",sk1, err_code);