!
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
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);
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
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
___
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.
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()
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
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
|
| 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
9 matches
Mail list logo