Changeset 8640
- Timestamp:
- 02/01/09 20:34:07 (4 years ago)
- Location:
- ossiedev/branches/ttsou/dist/components/socket_out
- Files:
-
- 2 modified
-
socket_test.cpp (modified) (3 diffs)
-
unp.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/ttsou/dist/components/socket_out/socket_test.cpp
r8639 r8640 4 4 #include <iostream> 5 5 6 // 7 // Socket interface 6 8 // 7 9 // Portions from UNIX Network Programming Vol. 1, Stevens, R. … … 16 18 sockfd = socket(AF_INET, SOCK_STREAM, 0); 17 19 20 #if 0 18 21 // Disable Nagle (Gierth) 19 22 int flag = 1; … … 24 27 sizeof(int)); 25 28 if (result < 0) 26 std::cout << "setsockopt error!!!!!!!!!" << std::endl; 29 std::cerr << "setsockopt error!!!!!!!!!" << std::endl; 30 #endif 27 31 28 32 bzero(&servaddr, sizeof(servaddr)); -
ossiedev/branches/ttsou/dist/components/socket_out/unp.h
r8639 r8640 1 /* Our own header. Tabs are set for 4 spaces, not 8 */2 3 1 #ifndef __unp_h 4 2 #define __unp_h 5 3 6 //#include "../config.h" /* configuration options for current OS */7 /* "../config.h" is generated by configure */4 //#include "../config.h" /* configuration options for current OS */ 5 /* "../config.h" is generated by configure */ 8 6 9 7 /* If anything changes in the following list of #includes, must change