Changeset 34
- Timestamp:
- 02/13/07 21:36:13 (1 week ago)
- Files:
-
- people/chihchun/udp/brocast-udpserver.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
people/chihchun/udp/brocast-udpserver.c
r30 r34 16 16 int len; 17 17 char buff[128]; 18 char syscmd[80]; 18 19 19 20 if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) == -1) { … … 50 51 51 52 buff[len] = '\0'; 53 sprintf(syscmd, "cat %c.wav > /dev/dsp", *buff); 54 printf("%s\n", syscmd); 55 system(syscmd); 52 56 printf("received messages from %s:%d:%s\n", 53 57 inet_ntoa(c_addr.sin_addr), ntohs(c_addr.sin_port), buff);