winsock

MASM cmpsb problems

Hello everybody I'm having a problem comparing two strings with each other, one string receives data from an irc server, one line at a time, and the other holds hard coded data ("PING :") But every time I try and compare the strings nothing happens. Can you guys help me out? The compare function is in Handleping Here's the code I'm cu...

Networking for Xna (C#) and C++?

Me and some friends were thinking about making an online game with XNA game studio. Our games mainly used Winsock for the networking portion, but our most recent project used RakNet where the server was in C++ and the Client used a small RakNet wrapper I wrote. As far as I know XNA can't really use DLLs, so I was wondering what a good ne...

Winsock local loop-back latency

I'm using tcp sockets to provide interprocess communication between two apps on Windows XP. I chose tcp sockets for various reasons. I'm seeing an average round-trip time of 2.8 ms. That's much slower than I was expecting. Profiling seems to show that the delay is between one app calling send and the other end's blocking recv returning. ...

problem in receiving UDP packets

Hi, I'm getting UDP packets from the port continuously. Following is the log from wireshark. How to receive those packets continuously using winsock programming. I tried but I can't able to receive. After recvfrom() call it is not writing into a buffer.Give me idea, how to receive each packet in a buffer and write each packet into to a ...

AF_INET for IPC in windows

I wish to know that If protocol family AF_INET is used for local communication (IPC) in windows systems. (with loopback interface) will it be able to give performance same as AF_UNIX in unix. I tried for Named pipe in windows but it doesn't seems to me working for my case. AF_INET when used it will go through the TCP/IP stack. which wil...

Looking for a simplest (and fastest) example of TCP socket programming for windows, c or c++

Hi, I'm looking for a simplest (and fastest) example of TCP socket programming for windows, c or c++, whichever can get it accomplished faster, sending trival data, for example 1 byte, or several bytes, but in one packet. It's for research purposes. I googled and found several examples, however every single of out them looks a bit dif...

Browsers and winsock on windows

Hello! Is thit true that all browsers on windows OS work thru winsock? thanks ...

LSP or WFP? and some questions

I need change traffic on the fly, and on WFP for this need write driver, so i need using just LSP. Where in official documentation i can confirm LSP OS compatbility? Do i can with LSP change namespace traffic? What difference between LSP and WFP? ...

Binding to LOOPBACK in IPV6 - IPV4 is bound to ANY?

I swear I've seen this asked before, but I can't hit upon the magic search string to find it for me: I create a socket for listening using: s = socket()... getaddrinfo("::1",...); bind()... and I end up with an IPV6 socket bound to "::1" and an IPV4 socket bound to "0.0.0.0". I expect to get the IPV4 socket bound to "127.0.0.1". Why ...

TransmitFile + SChannel

I'm using the TransmitFile API with I/O completion ports for an efficient multithreaded file server on Windows. This all works fine, but I've now also implemented secure sockets using SChannel. Because TransmitFile streams the file directly to the socket, I don't see a way to call EncryptMessage - will I need to read the file in chunks,...

Network Programming Low Level or Class Abstraction?

I see a lot of questions on the topic of network programming. Despite all the questions and answers I just do not know which way is best to start. Is it better to start from the lowest level, or immediately to work in .NET C #, without going into details below abstraction? Is it better to go with Winsock or BSD Socket programming in Linu...