src/sock_tcp.c
changeset 40 51678c7eae03
parent 30 7f8dd120933f
child 85 75bc8b164ef8
equal deleted inserted replaced
39:a4891d71aca9 40:51678c7eae03
   118 }
   118 }
   119 
   119 
   120 /*
   120 /*
   121  * Our sock_stream_type
   121  * Our sock_stream_type
   122  */
   122  */
   123 struct sock_stream_type sock_tcp_type = {
   123 static struct sock_stream_type sock_tcp_type = {
   124     .methods                = {
   124     .methods                = {
   125         .read               = &sock_tcp_read,
   125         .read               = &sock_tcp_read,
   126         .write              = &sock_tcp_write,
   126         .write              = &sock_tcp_write,
   127         .event_init         = &sock_tcp_event_init,
   127         .event_init         = &sock_tcp_event_init,
   128         .event_enable       = &sock_tcp_event_enable,
   128         .event_enable       = &sock_tcp_event_enable,