393 byte By
susiriss at 2007-12-5 22:13:54
Dear Friends, I just want to detect the presence of a computer identified by its IP address on the LAN. I found several APIs which seems to have a link with Winsock ,about which I know nothing right at the moment. So can you suggest the easiest method to do that. A code...
Hi<br/> What is presentation format ? I am confused with the difference between inet_pton and inet_aton . Can anyone explain it with some example ?<br/>Thanks a lot
97 byte By
kmashif at 2007-12-4 10:39:29
did any body use the API WNetDisconnectDialog1()..i need that example..mine does not work..thanks
I want to know how can i use VPN (Virtual Private Network)in my application for connecting a remote LAN client.i am explaning situation bt following figure:---- ------ --- ---|Machine A| --- >> |internet(WAN)| ---->> |Server|-- >|M...
Hello I derived a class from the CSocket class. I'm trying to make the Send() function in a thread but the program is just freezing . Heres the code :// declarationclass CPSock : public CSocket{ DECLARE_DYNCREATE(CPSock)// Attributespublic: typedef struct SENDPACKAGE { CPSock* _this; co...
485 byte By
mcastuds at 2007-11-29 14:56:35
hiI need to get a list of all the computers on the LAN which are ON i.e. which are up.For that i think the best option is to broadcast a connection request to all the systems on LAN and those who are up will be programmed to send something like their address.I don't know how to broadcast a conn...
1099 byte By
hmmm... at 2007-11-27 0:19:31
hii have a MSVC program & was trying to send OGG files using winSock. my code is At the server side: CFile myFile; myFile.Open("test.ogg", CFile::modeRead | CFile::typeBinary); int myFileLength = myFile.GetLength(); sockRecv.Send(&myFileLength, 4); byte* data = new byte[myFileLength]; myFile.Read(d...
Hi,I am new in socket programming so could someone please tell me if there is something wrong with the c style pseudocode below? , and what I can do to improve it.Thank you in advance.PSEUDOCODEmain() { socket local = socket(AF_INET, SOCK_STREAM); local.bind("localhost",53); local.listen...
Hi all. I have three problems trying to bind()/getsockbyname() and listen(). The problem code is as follows:SOCKET socketbuffer = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if(socketbuffer == SOCKET_ERROR){ cout << "SOCKET error: " << WSAGetLastError() << endl; } if(bind(socke...
1109 byte By
Dave089 at 2007-11-25 11:48:55
Hi all,I have a problem connection to a remote Windows Media Services 2003 server by C# code.I need to create a distributed COM server object in order to program against the server.These are the code lines *Type tServerType;WMSServer RemoteServer;*// Retrieve the type information from the Windows//...
1657 byte By
Printisor at 2007-11-25 11:48:47
Hi all,I am trying to create an application that uses TCP sockets under Unix, where multiple clients connect to one server. Each message sent by one client is forwarded to all other clients. I am using on the server side an array of int's declared at the beginning of the application, that will...
459 byte By
tomcio at 2007-11-25 11:48:31
Hello!I want to use SCTP protocol on Windows, but it's much harder, that I was thinking. Under Linux I haven't got any problems, because it have native implementation and simple API.I found SCTP implementation (sctpplib from www.sctp.de). I'm trying to understand it's API, but wi...
253 byte By
john_avi at 2007-11-25 11:48:13
does anyone know how to retrieve domain name from an IP address? I know it is possible since I have seen it happening in an application? I want to know the windows API or any other method which can return me domain name of which this IP address is part?
921 byte By
mokeefe at 2007-11-25 11:48:09
Hope this is the right forum. If not, sorry.I am trying to create a multipart html document that I can transmit as an attachment. I have all the attachment part working, but I can get an image embedded into the attachment document. I am trying to set up a multipart doc, but the MIME info keeps print...
415 byte By
ahoodin at 2007-11-25 11:47:27
Hey guys, I had been trying to do some gmails with SMTP.Here is the code I was using http://www.dev-archive.com/forum/showpost.php?p=1118184&postcount=2 Then I ran into something...TLS. How do I do this? I readRFC 2487 / RFC2487 SMTP Service Extension for Secure SMTP over TLS,but I still don't...
Hi all.I'm trying to send one file using tcp connection. i'm using c++ sockets.my app is written in VC++ and is the server side (client side is VB6).Basically, what i want is a way to know if the 'send' command has finished with information sending. Or if the socket buffer is emp...
Hi all.How can I get the coordinates IHTMLLIElement (Highlights, Latest releases, Using your computer, ..) at www.microsoft.comcode:pDoc2 - pointer to the document frame containing element pElement - pointer at the element Text - text linksvoid CExplorerWindow::GetLinkRect(CComPtr<IHTMLDocument2&...
Hi all. Im trying to create a FTP client. So far i have the first two commands down correct, and thats the USER/PASS commands. However the PORT and PASV commands im having serious trouble with. Im hoping someone here is skilled enough to answer all my questions and not refer me to pages i've al...
238 byte By
vni at 2007-11-25 11:43:59
Hi,<br/>I have a question,, can client and server be written in single program which can communicate with each other. They should be able to both send and receive data.<br/>If yes, Please give me the idea..<br/>Thanks & Regards.
hello all,I m facing a problem in tcp/ip non bloking socket.Receiver can not get the data same send by sender....but some random data comes along with original one.....Can anyone send me a complete program where sender can send large data in a for loop and receiver receive exactly same data send by...
2236 byte By
Kensino at 2007-11-25 11:42:14
I am using C# not C++ but I am having a hard time getting a working solution, so I wanted to ask in this networking forum. I have tried to use several classes like sslstream, but they are really advanced and also require the user have admin permissions on the client. Basically, my question is. Is it...
1027 byte By
kvk at 2007-11-25 11:41:51
hello,This is Vamshi Kumar Kota, i am a graduate student. Till now i didn't work on windows programming and win32 API. Now i have to work on a project.The project is:1) i have 15 workstations - windows XP2) a winodows 2003 server and Sql server 2000.3) i have to connect 15 workstation and serve...
347 byte By
Rooting at 2007-11-25 11:41:45
hi friends!!..it's my first programm of socket..i 'd like to programm a software that show me, the text ofa html page..how I do??..i'd like whith a unix structure , becouse i like to run ina bsd machine..how i can start whith??..an example or a page that i start study??..thanks!!.....
2318 byte By
GyroTech at 2007-11-25 11:40:12
Hi all,I'm writing a simple client\server messaging app. The client is an ActiveX control that connects to the server, and then waits on the socket with WSAAsyncSelect(). When it receives an FD_READ message, it reads in the packet and does what it's meant to do with the contents.LRESULT CE...
Hi all,I am stuck with one so called irritating problem, I have written one HTTP client to upload one text file to my local server. And the upload works without fail if I run my application in Debug Mode.. i.e. HTTPOpenRequest always passes, but for some reason HTTPSendRequest always fails in Re...
235 byte By
iStriker at 2007-11-25 11:39:24
Hi everyone. I'm new to socket programming so sorry if this is a noob question.<br/>Nway, is there a way to ping an access point, given that i know it's IP address, and get the RTT in nanoseconds, instead of miliseconds?
714 byte By
shizam at 2007-11-25 11:37:12
Client - Windows Server 2003Server - Linux ? ( not sure version, etc )So I did a network capture, and notice that the host I'm connected to keeps retransmitting data that I had already received every once in a while.I realize that basically the RTO ( retransmission timeout ) on the Linux Kernel...
Okay im using a tcp socket that is connection oriented. Now this is not anywhere near an ideal socket function. I just need a quick and dirty way to send a string and receive back a very simple fixed length string. I dont care how fast it is or how much memory it takes as long as it works. Here is m...
457 byte By
R_Georg at 2007-11-25 11:35:51
I am working in .NET 2003 MFC. I have an object based on CDialog that intializes multiple sockets (each in its own thread, based on socket, not CSocket or CAsynchSocket) that have to be able to handle requests every 2 seconds. The problem is that when I initialize a dialog in front of the window of...
173 byte By
decoder at 2007-11-25 11:35:40
hi<br/>I executed a server and a client program..when i run the client program i get it as "killed"..why is it so?<br/>$ cc myswpc.c<br/>$ ./a.out<br/>Killed<br/>$
514 byte By
Patator at 2007-11-25 11:34:11
Hi all,I developed a client which connect to server by ssl socket ( secure connections with boost library).By this socket i have to transfer XML messaging.The write function of the library i used has an unsigne char* buf as input parameter to put in the information to send to server.My problem is th...
347 byte By
the timp at 2007-11-25 11:31:16
Hi,Anyone know how to get the ip address of an existing network interface?(Using Nucleus Net/Plus)or can point me to the correct forum?"NU_Get_Sock_Name" is not returning a valid address and "NU_Ioctl" requires me to set up a new device rather than connect to the existing one.regardsthe timp...
This is a new area for me and I'm still hacking my way through it, so I would greatly appreciate any insight or a push in the right direction. I have a process that needs to be notified when dhclient (which is launched by an unrelated process in another application) finishes configuring the net...
1435 byte By
steve1_rm at 2007-11-25 11:30:08
Hello,I am created a client server application using the poco libraries. And using UDP.However, I would like to do something with the data and then send it back to the client. However, I don't know how to send back to the client, once the server has received the data from the client.Here is my...
I have some trouble understanding a few things: BGP Prefixes, AS Numbers and POPs. Can someone please be kind enough to explain them? I'm unable to find much information except for one line definitions..
I'm having an issue with an event channel factory. When I try to create a new channel the client is calling the lookup_by_name function but when my call gets to the Server side it is calling the wrong function. I know it's a shot in the dark but does anyone have any ideas about what is g...
1477 byte By
steve1_rm at 2007-11-25 11:28:07
Hello,I have created a simple server application. It listens on a port for the client to send.However, I have implemented a loop, so that the server will always be listening. However, is there a better way like using a event, so when a message is received it will fire the event. Instead of using a w...
748 byte By
the timp at 2007-11-25 11:27:55
Hi,I am trying to extract the ipaddress of the interface of my embedded device.Access to the network is via the Nucleus Net package, i have the manual and have read it.To that end i am attempting to use:nStatus = NU_Ioctl(SIOCGIFADDR, &option, sizeof(option));Unfortunately the code sample I am using...
267 byte By
majoy at 2007-11-25 11:26:34
Hi...<br/>anyone knows how to do socket programming in solaris 10? I tried socket programming in Linux before. I'm just not sure if same syntax will be used in Solaris.<br/>I would appreciate some help. A link to tutorial site will do.<br/>Thanks,
Hello,I have just started learning socket programming using C++ in visual studio 2005. I know the syntax of C++.Just wondering does anyone know of any good tutorials that I can follow in creating a client server application. We use Poco for are libraries. Any examples on using this would be most gra...
Hey everyone I'm very new to network and winsock programming so bare with me. Can anyone show me step by step with source code examples on how to get the WAN IP address of my router using C\C++ and using either Visual C++ 2005 compiler or Borland Command Line Compiler. The source code has to co...
150 byte By
imangh at 2007-11-25 11:24:38
Hello<br/>I need to connect to Domain whois server via a HTTP Proxy server, would you please let me know how to do it?<br/>thanks a lot.<br/>Iman
500 byte By
kola at 2007-11-25 11:23:54
I dont know where i can ask this question...If it is wrong place sorry for that.My question is...How to print the date and time in awk script?This one is print line, print first field of the file, feild seperator..#!/bin/awk -fBEGIN { print "These user are on the system:" } {FS = ":"}...
Hi,I am trying to connect to a third party device via a TCP/IP socket.If I configure the IP addresses on both the third party device and my PC as follows...PC--IP: 192.168.1.100Subnet Mask 255.0.0.0Device--IP: 192.168.1.200Subnet Mask 255.0.0.0... then the calls I make to both socket() and con...
Hey,Im writing a application for my friend, which simply connects to my server and sends a number to it. The server replys with 0 or 1, depending on the number. But all that doesn't really matter cause I haven't even done that bit. Im upto connecting to my server (which I know works cause...
1101 byte By
mao_03 at 2007-11-25 11:19:25
Hi,I programmed an application that should receive UDP packets (size 38000) and in a first step just send it to the next PC.The packets come fast and at first i had a problem getting the packets out as fast as they came. This seems solved though by using four sockets to send the data out.Now it look...
I'm trying to implement a certain program that depends heavily on network communication. However, since I'm using a TCP socket I usually run into problems if one of the devices freezes when the other is waiting for data because the the socket is blocking. What I want to know is whether it&...
hi my email id is charming_guy45@yahoo.com please send me email if any one can give me code for client server program in c++ using linux library
hi iam stuck in a program in which purpose of server is to maintain a map between integers and strings and purpose of client is to submit a string to the server it should be in done using linux library
930 byte By
eXistenZ at 2007-11-25 11:15:12
hey, im using CAsyncSocket class for a file transfer.. its an easy client to server TCP transfer but the problem is how many bytes should i read from the file and send to one Send() function call, i am using a while() until i get a block "error" from the Send() function, i noticed its not so fast if...