HI everyone,
I'm going to be writing some code that has to listen for TCPIP messages coming from GSM mobile phones over GPRS. In the fullness of time, I see this as running on a Virtual Private Server, and it could well be processing multiple messages every second.
I'm a bit of a network programming virgin, so I've done a bit of resea...
My webapp received a request from 10.18.255.249 (but the 10.0.0.0/9 cidr block is reserved) according to https://www.arin.net/knowledge/rfc/rfc1918.txt
How is this even possible?
...
Is there a more elegant way of checking if a TCP port is available with Delphi other than catching a netstat call?
...
What is the best way to check if client has an open port, and if it's forwarded properly?
The app works like this currently:
Client creates a socket for incoming connections and wants to notify everyone about his open port. Client also tries to setup port forwarding using UPnP (but it's not always present and enabled).
Client then sen...
If I make multiple HTTP Get Requests to the same server and get HTTP 200 OK responses to each one how do I tell which request maps to which response using Wireshark?
Currently it looks like an http request is made, and the next HTTP 200 OK response is quickly received so everything is in a the proper sequence. I have seen things to the...
In the man page for the system call write(2) -
ssize_t write(int fd, const void *buf, size_t count);
it says the following:
Return Value
On success, the number of bytes
written are returned (zero indicates
nothing was written). On error, -1 is
returned, and errno is set
appropriately. If count is zero and
the file ...
I'm not extremely familiar with IBM MQSeries, but I am writing c# scripts which write and read files from my queue server. The problem is my read works but my write doesn't. Please notice that I am using the same queue so don't bother going in that direction.
My code firstly accesses the MQserver with the following code:
MQQueueManager...
I'm using Perl 5.8.8 and trying to determine if Perl automatically and consistently restarts the readline function ( better known as <> ) if it's interrupted by a signal.
I want to safely read newline '\n' terminated strings from a TCP socket using readline.
In the section Deferred Signals (Safe Signals) it says:
Restartable syst...
Hello,
I'm wondering whether there is a programmatic way to obtain a measure of the full bandwidth used when sending data through a TCP stream. Since I cannot seem to know how the network stack would divide the stream into packets, or when it sends a TCP SYN or ACK or many of the things it does in the background for you, I can only get ...
Is there a way to find mapping between MAC address to IP address in C#. i think RARP should be able to do that, is there an API available in C# for that
...
I am running a Linux box running 2.6.9-55.ELsmp, x86_64.
I am trying to set the TCP receive window by using the setsockopt() function using C. I try the following:
rwnd = 1024;
setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)&rwnd, sizeof(rwnd));
The code segment above is in a client program that receives data from a server. When I k...
In Java, I need to grab a port number for communication between multiple instances of the same program.
Now, I could simply pick some fixed number and go with it. But I'm wondering if there's a way to dynamically choose the port number, so that I don't have to bother my users with setting the port number.
Here's one idea I had, which wo...
Hello everybody,
I am writing an application in C, using libpcap. My program listens for new packets and parses them
according to a grammar. The payload actually is XML.
Sometimes one packet is not enough for an XML file, so the XML buffer is splitted into separate packets.
I want to add code logic in order to handle these cases. Howev...
Hello All,
I am connecting to TCP/IP port in Asp.Net, basically i have attached a device on this port to which i am reading, it is working fine but on second time when tcp listener tries to start then it generates the above error.
can any body guide me how can i get rid of this error here is my code that i am using to connect to TCP/IP ...
I would like to write an application like a netstat - to show all the active connections and the open ports respectively. The problem is that I don't know how to do it - I've done some network programming but in general it was some simple server-client packet and simple TCP and UDP packets sending/receiving.
I looked at the netstat cod...
According to msdn this parameter means:
controls the maximum number of queued
connection requests that can be
pending for a Web service.
Does this parameter have any influence when used in a autogenerated WCF client proxy. (the one that created with svcutil....)
...
Please consider the following scenario:
Host1 has a public IP
Host2 doesn't
Hosts are in different networks.
Host2 is running a web service (yes, Host2)
Host1 is a client for it
I understand that to provide accessibility to Host2 from Host1:
1) I can set up a VPN, but this is too much just for one communicating channel.
2) I can use ...
java-me uses the internet connection of the mobile device to implement network api's.
are there any special features in the implementation of tcp/ip protocol stack for mobile devices or the implementation is essentially the same with a little different parameters like buffer space etc.
lets take symbian for example.
...
I wanna build a TCP/IP server that will be used by up to 100 concurrent clients, but still not sure how to get started.
at least I need the server to this:
Listening to client, and store all them on array or list.
for each client, it need to receive and send data based on it's client status.
The server should update the clients list w...
Assuming you have an IP address and no other information. You're not allowed to use DNS as it may be reporting invalid information. Also assume that the destination machine is running a Microsoft OS and is currently online and booted.
Is there any way to query the machine directly using the IP address (some service/port) to find out...