attempted to fix some socket class issues

This commit is contained in:
hyunghwan.chung
2017-12-17 15:38:38 +00:00
parent e63596688a
commit 63e34ccf71
3 changed files with 25 additions and 14 deletions

View File

@ -134,7 +134,7 @@ struct sockaddr_in sin;
memset (&sin, 0, sizeof(sin));
sin.sin_family = AF_INET;
sin.sin_addr.s_addr = inet_addr ("1.234.53.142");
sin.sin_port = htons(80);
sin.sin_port = htons(12345);
do
{
n = connect(fd, (struct sockaddr*)&sin, sizeof(sin));