[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
void main (void) { int fd = socket( AF_INET, SOCK_STREAM, 0 ); int type; int length = sizeof( int ); getsockopt( fd, SOL_SOCKET, SO_TYPE, &type, &length ); if (type == SOCK_STREAM) puts( "It's a TCP socket." ); else puts ("Wait... what happened?"); }
sidyhe void main (void) { int&n ...