Re: [hlcoders] winsock question

2003-08-04 Thread Jeroen \ShadowLord\ Bogers
! Jeroen ShadowLord Bogers - Original Message - From: matthew lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 04, 2003 02:23 Subject: [hlcoders] winsock question | | I have never seen this happen. Are you sure you aren't looking at netstat | the wrong way, or that you

Re: [hlcoders] winsock question

2003-08-04 Thread botman
Here's the actual code: //- int CIrisSockets::OpenSocket ( const char *sz_ipaddr, int iPort ) { char func_name[] = CIrisSockets::OpenSocket ; // create a UDP socket. sockfd = socket(AF_INET, SOCK_DGRAM, 0);

Re: [hlcoders] winsock question

2003-08-04 Thread Florian Zschocke
botman wrote: You should have... sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); ...instead. Why is that? Normally the protocol argument to the socket() function is set to 0 (except for raw sockets). Florian. ___ To unsubscribe, edit your list

Re: [hlcoders] winsock question

2003-08-04 Thread botman
Why is that? Normally the protocol argument to the socket() function is set to 0 (except for raw sockets). Are you talking about Windows sockets exclusively, or all socket libraries (i.e. Linux, Unix, Solaris, OS/2, etc.)? Jeffrey botman Broome ___

Re: [hlcoders] winsock question

2003-08-04 Thread Florian Zschocke
botman wrote: Are you talking about Windows sockets exclusively, or all socket libraries (i.e. Linux, Unix, Solaris, OS/2, etc.)? Generally speaking. I know it for sure for most Unix type OSes, i.e. Linux, Solaris, Irix, *BSD. I know that it also works for Windows since I've used it there, too.

Re: [hlcoders] winsock question

2003-08-04 Thread botman
Generally speaking. I know it for sure for most Unix type OSes, i.e. Linux, Solaris, Irix, *BSD. I know that it also works for Windows since I've used it there, too. But I'm no Windows programmer, that's why I'm asking. I dunno, I've just always specified the protocol in the socket()

[hlcoders] winsock question

2003-08-03 Thread matthew lewis
Does anyone know why winsock2 also opens a TCP socket when you create a UDP socket? It's not hurting anything, but its very strange. (The TCP socket shows up when doing a netstat.) ___ To unsubscribe, edit your list preferences, or view the list

Re: [hlcoders] winsock question

2003-08-03 Thread Jeroen \ShadowLord\ Bogers
Subject: [hlcoders] winsock question Does anyone know why winsock2 also opens a TCP socket when you create a UDP socket? It's not hurting anything, but its very strange. (The TCP socket shows up when doing a netstat.) ___ To unsubscribe, edit your list

[hlcoders] winsock question

2003-08-03 Thread matthew lewis
| | I have never seen this happen. Are you sure you aren't looking at netstat | the wrong way, or that you aren't opening a TCP socket by accident? | | Jeroen ShadowLord Bogers | Here's the actual code: //- int