forked from KolibriOS/kolibrios
- Updated tcp_demo example.
git-svn-id: svn://kolibrios.org@8521 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
41c3cb567f
commit
38cd0f8a9a
@ -8,7 +8,7 @@ char msg2='\0';
|
|||||||
|
|
||||||
int main()
|
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);
|
int sk1=socket(AF_INET4, SOCK_STREAM, IPPROTO_TCP);
|
||||||
printf("Open socket: %d. Error: %d\n",sk1, err_code);
|
printf("Open socket: %d. Error: %d\n",sk1, err_code);
|
||||||
|
Loading…
Reference in New Issue
Block a user