tcpip

Where can I found the stack of protocols that ICQ using to develop my own client?

I am going to develop ICQ client and I just wonder where can I find a reference to understand the protocols they used? Any links, books, etc. And, by the way, if I am not mistaken - all ICQ clients - QIP, Miranda, ICQ Lite and others - uses the same version of protocol to communicate correctly with ICQ servers? ...

Converting serial port data to TCP/IP in a linux environment

Thank you in advance. I need to get data from the serial port of a linux system and convert it to TCP/IP to send to a server. Is this difficult to do? I have some basic programming experience but not much experience with Linux. Are there any open source applications that do this? Again thank you for any help. ...

What OOP design decision will suit the situation of protocol in client/server app?

I am writing a client/server app in C++ and need to realize simple protocol to sent and receive data correctly. I have a class for server protocol which can convert the message to my format and then convert it again from this format. That what is server-side protocol looks like: class BaseProtocol { protected: int NumberOfBytesInPac...

ADO.NET SQLServer: How to prevent closed connection from holding S-DB lock?

i Dispose an SqlConnection object, but of of course it isn't really closed. i need closed connection to not hold locks on database objects. How can i prevent closed connections from holding locks? Explanation of the above sentance for those who don't know: When you close an ADO or ADO.NET connection, you aren't actually severing the...

Can traffic on loopback be packet sniffed?

Can any data exchanged on a local machine using the loopback IP 127.0.0.1 (localhost) be packet sniffed if the PC is also connected to a network (wireless or landline)? Would like to know if the loopback, as a means of interprocess communication for locally running processes, can be regarded as a secure means of exchanging data (i.e., n...

Does blackberry API allow blackberry to connect to desktop via TCP/IP?

Wondering how to connect blackberry to desktop or the other around via tcp/ip? I assume both the desktop and the blackberry are connecting to the same router. ...

non routable ip address

I know that 127.0.0.1 is by convention loopback and that there are various address ranges which are reserved for local use. Is there an IP address that is reserved never to be assigned. I would like to test that something works when an IP address can't be found, I could just use a local address which isn't used but thought that there ma...

What happens to a TCP packet if the server is terminated?

I know that TCP is very reliable, and what ever is sent is guaranteed to get to its destination. But what happens if after a packet is sent, but before it arrives at the server, the server goes down? Is the acknowledgment that the packet is successfully sent triggered on the server's existence when the packet is initially sent, or when t...

Raw socket implementation in windows?

I need to create TCP/IP headers manually for my application. For that i used Raw socket. My system os is win xp (SP3). My code compiles fine :) but it throws a run time error: Initialising Winsock...Initialised successfully. Creating Raw TCP Socket...Raw TCP Socket Created successfully. Setting the socket in RAW mode...Successful. E...

Best current book on Windows networking (TCP/IP, sockets, packet filtering, firewalls)

Before you jump to TCP/IP Illustrated or UNIX Network Programming, let point out that I am looking for a great book or two that are going to help me on Windows XP and Vista. I'm a C++ developer creating end-user applications (not a device driver writer or hardware guy) and I want to make use of the networking API's to get applications ...

Choking experienced while using the TCP/IP Adapter for BizTalk Server 2006

I am using the TCP/IP Adapter for BizTalk Server 2006 which was obtained from codeplex: http://www.codeplex.com/BTSTCPIP Once the application was deployed in production, we started to experience choking in the performance of the application. The more the requests, the more the performance degradation. Sometimes, it happens that the rec...

socket passing between processes

Is there a way to pass a socket between processes (not same address space) in Windows? I find this info Shared Sockets, therefore believe that it is possible. "The WSADuplicateSocket function is introduced to enable socket sharing across processes"... More info : at source code of Apache (httpd-2.2.11-win32-src.zip) have usage for api...

Discovering public IP programatically

I'm behind a router, I need a simple command to discover my public ip (instead of googling what's my ip and clicking one the results) Are there any standard protocols for this? I've heard about STUN but I don't know how can I use it? P.S. I'm planning on writing a short python script to do it ...

Simulate delayed and dropped packets on Linux

I would like to simulate packet delay and loss for UDP and TCP on Linux to measure the performance of an application. Is there a simple way to do this? ...

Multi-Threaded Client-Server Web Service - Making server side data thread-safe

Hi All I am implementing a multi-threaded web service. A thread is spawned per incoming request. For each client, a session is created and each session contains a data section - say a DOM tree. Client requests will basically be get/set methods and the server will read/write the DOM. So the DOM data is per client. Now my question is, s...

Practical implications of OSI vs TCP/IP networking.

Hi. I'm supposed to be setting up a 'geolocation based', ipv6, wireless mesh network to run on google android. I found what seems to be a good app to support the meshing: http://www.open-mesh.net/wiki/batman-adv "Batman-advanced is a new approach to wireless networking which does no longer operate on the IP basis. Unlike B....

Risk of exploits "backwards" into outbound tcp connections.

I am building a server application that will maintain connections to other applications by initiating TCP connections out through a firewall that is only open for outbound traffic to the relevant IP's ports that the application will connect to. What is the risk of someone having taken over the machine(s) we connect to being able to expl...

Can I run java programs in a Windows Mobile 6 device?

I need to run a java program in a Windows Mobile 6 device. Is this possible? I need to do some tcp/ip programming with that so I can communicate to other computers. It's a simple computer class project, nothing fancy. Just sending messages and small files. Any suggestions? ...

TCP and POSIX sockets accept() semantics

Situation: The server calls accept(). The client sends a SYN to the server. The server gets the SYN, and then sends a SYN/ACK back to the client. However, the client now hangs up / dies, so it never sends an ACK back to the server. What happens? Does accept() return as soon as it receives the SYN, or does block until the client's ACK is...

Behavior of connect() with TCP

I call connect() on the client. The client enters the SYN_SENT state and sends a SYN. Now it gets a SYN with no ACK in it, so the client enters the SYN_RCVD state. Does connect() return at this point? Technically you have enough information to be able to call send() and recv() on the socket. The RFC itself says, if you call SEND on a s...