Where can I find an example program in C to print to a network attached HP printer.
|
I noticed some legit connection is like this:
6221 29.880628 5.4.3.2 1.2.3.4 TCP 61235 > cbt [SYN] Seq=0 Win=8192 Len=0 MSS=1452 SACK_PERM=1
6222 29.880646 1.2.3.4 5.4.3.2 TCP cbt > 61235 ... |
I wish to keep polling a server, and switch to this server(sending data to this server over TCP/IP) when it becomes available.
Any suggestion to do this in C.
Thanks,
|
I am reading the book "TCP/IP Lean" and I came across the following code which i do not understand. Could anyone explain it to me?
WORD buff_in(CBUFF *bp, BYTE *data, WORD len)
{
...
|
HI to all, Please answer this question 1) If we want to send a 10mb file from system1to system2 through Ethernet how the 10mb transfer take place through Tcp and udp A few questions of mine 1) where fragmentation will take place will it in ip layer or in tcp or in both 2)since fragmentation fields are there in ip, if ... |
Hi Y'All... I really need your help!! I've used this groups to learn and get me out of troubles but this is my first time writing a subject. My problem is that I need to make a C program that run in DOS and comunicates to another program made in VB.Net 2005. I used Borland C++ 5.02 but Im not even ... |
7. tcp/ip chat cboard.cprogramming.com |
|
|
|
Of course there is, how do you think network applications are written!? Platform? Language? The most ubiquitous networking API is probably BSD sockets. If you are using Linux for example you already have that - it is the OS networking API. On Windows the low level networking API is Windows Sockets (or Winsock), which is very similar to BSD sockets. There ... |
My sockets programming site so far is mainly background information, but I haven't gotten to the how-to part yet. You would probably want to read over it if you're not familiar with TCP/IP, IP addressing, and ports. http://members.aol.com/DSC30574/sockets/index.html Check the web-sites section of my resources page at http://members.aol.com/DSC30574/soc....html#WEB_SITES . A very good choice to start with would be "Beej's Guide to ... |
|
For what OS? Both Windows and Linux can use BSD sockets, but Windows requires Winsock support for which a few lines of code need to be added. I compile my Winsock programs with either Visual C++ 6 or with the MinGW port of gcc (obtained through Dev-C++). In both cases, I need to include the wsock32 library. Of course, on Linux ... |
#include #include #pragma comment(lib,"user32.lib"); #include #include #include"tcpip.h" /*Function definitions for communication over TCPIP*/ /*Parameters for TCP/IP Communication*/ WSADATA wsaData; WORD version; int error = 0; SOCKET server_addr; SOCKET client_addr; struct sockaddr_in Start_Server; int length = 0; char tcp_ip_recv[20]; char *at_mmi_command; /*Function initializes winsock*/ int Ta_Ut_tcpip_winsock_init() { version = MAKEWORD( 2, 0 ); /*initiate use of the Winsock DLL by a process*/ ... |
Samples C++ Code to do SMTP From a Win32 Console #include #include #include //#include #include #include //using namespace std; #define MAX_LENGTH 1024 #pragma argsused char *fgets(char *line, int maxline, FILE *fp); int fputs(char *line, FILE *fp); int getline(char *line, int max); void main() { int s_len, r_len; int skt_Smtp; int success; struct sockaddr_in st_Sockaddr; char ... |
|