File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#define HOST "127.0.0.1"
10
10
#define PORT "9000"
11
- #define BUFFER_SIZE 1000
11
+ #define BUFFER_SIZE 10240
12
12
13
13
int main (int argc , char * argv [])
14
14
{
@@ -59,9 +59,9 @@ int main(int argc, char *argv[])
59
59
/* send, recv */
60
60
size_t size ;
61
61
char * line ;
62
- udt_send (sock , "Client wants to talk" , 21 , 0 );
62
+ udt_send (sock , "\tClient wants to talk" , 22 , 0 );
63
63
while (1 ) {
64
- printf ("\n>> " );
64
+ printf ("\t\ n>> " );
65
65
size = 0 ;
66
66
size = getline (& line , & size , stdin );
67
67
if (size == 1 ) break ;
Original file line number Diff line number Diff line change 10
10
#define BACKLOG 5
11
11
#define HOST "127.0.0.1"
12
12
#define PORT "9000"
13
- #define BUFFER_SIZE 1000
13
+ #define BUFFER_SIZE 10240
14
14
15
15
int main (int argc , char * argv [])
16
16
{
@@ -82,7 +82,7 @@ int main(int argc, char *argv[])
82
82
/* send, recv */
83
83
char buffer [BUFFER_SIZE ];
84
84
while (udt_recv (conn , buffer , BUFFER_SIZE , 0 )) {
85
- printf ("Req : %s\n" , buffer );
85
+ printf ("\tMessage : %s\n \n" , buffer );
86
86
memset (buffer , 0 , sizeof (buffer ));
87
87
}
88
88
You can’t perform that action at this time.
0 commit comments