I've been searching around and have had little luck. I'm looking for a python custom TCP stack implementation that I can modify to add predictable SYN & ACK sequence numbers while keeping all the other goodness of TCP the same (out of order packets, missing, duplicates, etc.. fixed).
Any ideas?
PS. this only needs Linux support, Mac and win support is optional
Search Result
Collapse
12 results in 0.0040 seconds.
Keywords
Members
Tags
-
getline() function behaves strangly
I am trying to emulate telnet functionality by writing a socket listener program, and an application redirecting its console to the listener over sockets.
On the server side I opened a socket on my local ip, a defined port, and started listening on it like this
Code:sockfd = socket(AF_INET,SOCK_STREAM,0); portno = atoi(argv[1]); serv_addr.sin_family = AF_INET; serv_addr.sin_addr.s_addr = INADDR_ANY; serv_addr.sin_port
-
How and why to reuse socket with Socket.Disconnect( )?
Socket.Disconne ct(bool reuse) according to msdn enables the program to reuse the socket
my questions are:
1)
if we decide to reuse the socket does that mean it will reuse the same local end point as well,what i'm asking is,
would it preserve the port for that socket or would it just(i don't believe it does)
save all the objects resources ?
2)if in effect it does only save the resources... -
Should I use Sockets or not, and why?
I've build TicTacToe game, and got it to work multiplayer. I have used one java server for connecting to the database and with the clients ( sockets ).
It works fine but now I am wondering if I could only make the clients connect to the database and receive/update data from there (whose turn it is and what move someone made), without any Java server and sockets.
Please help me on this one. Should I use sockets or not,... -
How to fix EAGAIN error on recv when socket reconnects?
Hello,
I implented a socket client to communicate to an ip camera with RTSP over HTTP to get teh video from the camera.
To stablished the communication with the camera, first i have to set an HTTP-GET tunnel, then send the RTSP commands. When the camera loses the connection, the program has to close the tunnel handler, finish the thread and when the process return to the main function, it begins the communication (start... -
Why my run method is not working?
This program consists of a client1 named client1 and a server named server.My client is able to connect to the server but the server cannot catch what my client is sending as inputs.
Here are the codes
client codes
<code>
import java.io.Buffere dInputStream;
import java.io.Buffere dOutputStream;
import java.io.IOExcep tion;
import java.io.InputSt reamReader;
import... -
Why is my server not responding?
Here's a little script I just implemented with ref to internet ..i run my server and then my client..
On my client side i input some string into my client side I am su[pposed to get a hello back from the server...This part is not working ..
Code:import java.net.*; import java.io.*; public class lab1_Qu2 { /** * @param args */ public static void main(String[] args) { //
-
Why i am I getting "Connection refused ":connect error ?
I just tried to create a small socket application with reference to tutorials on the web..
Hers's the script for the socket application
Code:package sockets_1; import java.net.*; import java.io.*; public class socket_class { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub //test_url(); test_socket();
Last edited by Niheel; Jun 25 '10, 02:13 PM. Reason: please use code tags when asking questions with code -
Can I socket server over the internet?
Im trying to maket a program for sending files and other stuf over the internet to my friend. My problem is I cant get it to work over the internet it only works when we are on the same network. Is there a way to send stuf over the internet insted of the network? Am I just mising something or is this imposible. This is what ive ben using for server:
TcpListener SServer = new TcpListener(800 0);
TcpClient SClient = default(TcpClie nt);... -
[C#] .mp3 File Transfer Help
Hello, I am currently trying to create a server/client file transfer system in which the server sends the client .mp3 files. The file transfers fine but when I go to play the file, it is all scratchy and skips and I think it has something to do with the bytes that I am sending.
Here is the server code:
Code:byte[] fileData = File.ReadAllBytes(sData); byte[] clientData = new byte[4 + fileData.Length];
-
Socket Programming - Receive Buffer Length
The code below works fine. As of now I just set the buffer length real big and all is good. However, I hate the impreciseness of that.
So my question in general is how do I know what length to set the buffer? In specific, my question is what causes the 'completed' event in the OnSocketConnect Completed method to fire? Does it fire at end of a packet or does happen at some end of data marker?
Code:public SocketClient(Page
Last edited by Frinavale; Nov 25 '09, 04:09 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags. -
Cygwin sockets: getaddrinfo undeclared
Im using cygwin to test the code of a server I am writing.
I've included sys/types.h, sys/socket.h, netdb.h, and arpa/inet.h.
And this is the output..
Code:../../../sockets.cpp: In constructor `network_class::network_class()': ../../../sockets.cpp:64: error: aggregate `addrinfo hints' has incomplete type a nd cannot be defined ../../../sockets.cpp:69: error: `getaddrinfo' undeclared (first use