473,786 Members | 2,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trouble with sockets

14 New Member
Hello, of course i'm still having troubles with sockets...
Though for the forum leaders, yes i put a post that my old thread was done! But let me get to the point! I see a lot of "simple" server and clients. But they just don't suit me!
1. I don't know how to link to winsock.
2. The codes are extreemly long for many of the source codes I find.
3. They go over what i need.

For the number 3, I'll explain, I just want like something that you put a file on. And then another person can download it. Like a direct connect server/client. Could someone help me? I'm really frusturated with all the trouble! Also I know about sockets, but i don't know how to use them or anything. Any links, or sources would be greatly honored! Please reply soon!
Feb 18 '08 #1
6 1301
gpraghuram
1,275 Recognized Expert Top Contributor
Hello, of course i'm still having troubles with sockets...
Though for the forum leaders, yes i put a post that my old thread was done! But let me get to the point! I see a lot of "simple" server and clients. But they just don't suit me!
1. I don't know how to link to winsock.
2. The codes are extreemly long for many of the source codes I find.
3. They go over what i need.

For the number 3, I'll explain, I just want like something that you put a file on. And then another person can download it. Like a direct connect server/client. Could someone help me? I'm really frusturated with all the trouble! Also I know about sockets, but i don't know how to use them or anything. Any links, or sources would be greatly honored! Please reply soon!


I would recommend MSDN link for winsock

Raghuram
Feb 18 '08 #2
Braindrool12
14 New Member
Thanks for the link! That helped a lot with the functions! Though is that how i link winsock to it? Whats the '.h' for? Also is there a certain winsock i need for c++ sockets? I just have winsock.dll and i don't know a thing about linking it to source code/project. Because I always see things like, winsock2, winsock, winsock32 and lots of winsocks! Please reply soon! =)
I would recommend MSDN link for winsock

Raghuram
Feb 19 '08 #3
gpraghuram
1,275 Recognized Expert Top Contributor
Thanks for the link! That helped a lot with the functions! Though is that how i link winsock to it? Whats the '.h' for? Also is there a certain winsock i need for c++ sockets? I just have winsock.dll and i don't know a thing about linking it to source code/project. Because I always see things like, winsock2, winsock, winsock32 and lots of winsocks! Please reply soon! =)
Try using winsock2 and i think your issue will be solved

Raghuram
Feb 19 '08 #4
Braindrool12
14 New Member
I took a look at the link, that helps my winsock issues. But it says i should be familiar with VC, also already know how to set up a socket. The problem is i don't know how to do those (from what the site says.)
Feb 19 '08 #5
gpraghuram
1,275 Recognized Expert Top Contributor
I took a look at the link, that helps my winsock issues. But it says i should be familiar with VC, also already know how to set up a socket. The problem is i don't know how to do those (from what the site says.)

Standard socket calls work with the Microsoft compiler.
You need not know anythink specific about VC, only u should be familiar with the IDE.

Raghuram
Feb 22 '08 #6
Braindrool12
14 New Member
Well thanks for the help! Though i haven't been on thescripts.com for a while. So sorta a late response i guess. =l Though I found Something more enjoyable than sockets ( im not saying sockets are boring or not usefull, i think there extreemly importent for online stuff!) Though i found computer graphics to be entertaining! But thanks for the help you gave me already!!!

Standard socket calls work with the Microsoft compiler.
You need not know anythink specific about VC, only u should be familiar with the IDE.

Raghuram
Apr 9 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

9
4964
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my webserver runs that part of the script (see attached file, snippet.php), though, it doesn't go through. I don't get an error message or anything...it just returns a "1" (whereas it should return a "0") as far as I can tell. I have read the PHP...
3
1777
by: umagnum338 | last post by:
Hi, I'm having some troubles getting pg_connect() to connect over UNIX domain sockets. Something that really confuses me is the error string being served up by apache. It says it was unable to connect to database xxxx. However, the characters are gibberrish. At first I thought that my problem was that I forgot to give the user name also (seeing there was no apache user in postgresql). However that wasn't it. To make sure though, I...
7
2156
by: slashdotcommacolon | last post by:
Hello, I'm working on the exercises from k&r, exercise 5-13 is to implement a simple replacement for the unix tail command. The brief says it should be able to cope no matter how unreasonable the input and should make best use of availbale storage (I suppose it means dont just declare a big char array). I have made a solution that seems to be basically working (tail -1 doesnt work, I'll try to fix that later), but I'm having trouble...
1
1774
by: Michael Evanchik | last post by:
im trying to do a get on a http server and keep appending the return data to a string and then i even tried an array of strings. But very odd things are happening. I am completely missing the header but i would get the second packet twice. Its obviously my code, or im just never gonna get c# working. please help here is my code. command button -------------------------- ManualResetEvent wait = new ManualResetEvent(false);...
4
6321
by: BadOmen | last post by:
Hi, What is the different between 'System.Net.Sockets.Socket' and 'System.Net.Sockets.TcpClient'? When do I use System.Net.Sockets.TcpClient and System.Net.Sockets.Socket?? Yours, Jonas
0
2588
by: joshblair | last post by:
Hello, I am trying to post XML documents to a third party using the HttpWebRequest. This URL uses HTTPS (SSL) but I don't have a client certificate to deal with. Apparently they are using WebMethods as the platform that receives these postings. I don't have any experience with that technology. The sample below is the from test app that I put together to post the XML (cXML Order Requests) documents. These documents, at least my
0
1453
by: rossabri | last post by:
This topic has been addressed in limited detail in other threads: "sockets don't play nice with new style classes :(" May 14 2005. http://groups.google.com/group/comp.lang.python/browse_thread/thread/76d27388b0d286fa/c9849013e37c995b "Subclassing socket" Dec 20 2005 - Jan 14 2006. http://groups.google.com/group/comp.lang.python/browse_thread/thread/391728cd442339c8/c0581b9ee5e7ceaf Briefly, the socket module ("socket.py") provides a...
2
1738
by: marcf | last post by:
Hello Everyone! I have so nearly finished a mud client for a customer to the point where I was about to send them the source code. Out of luck I took the project home to try it on my personal PC just to make sure. At work on my corporate network everything works perfectly but it seems once anyone uses the client on a direct high speed connection to the internet the incoming text seems to all get jumbled up! This is using...
0
9496
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10164
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9961
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4066
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.