473,386 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Set sender's port

Hi,

I'm reading some tutorials about sockets in the web, and so far didn't
find a way to set the sender's port. Is it possible to do? If so, which
command should I use?

Thanks,

Andre

Nov 15 '06 #1
3 1367
si******@yahoo.com wrote:
Hi,

I'm reading some tutorials about sockets in the web, and so far didn't
find a way to set the sender's port. Is it possible to do? If so, which
command should I use?
Here we discuss standard C and standard C doesn't
have any functions dealing with sockets. I suggest
asking your question in a group which deals with the
operating system you're using.

Nov 15 '06 #2
si******@yahoo.com writes:
I'm reading some tutorials about sockets in the web, and so far didn't
find a way to set the sender's port. Is it possible to do? If so, which
command should I use?
The standard C language has no support for sockets. You'll have
better luck asking in a newsgroup that's specific to your system,
perhaps comp.unix.programmer or comp.os.ms-windows.programmer.win32.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '06 #3
si******@yahoo.com wrote:
Hi,

I'm reading some tutorials about sockets in the web, and so far didn't
find a way to set the sender's port. Is it possible to do? If so,
which command should I use?
This is not a C question. Yes, we understand that you are writing a C
program, but your question doesn't concern the C language.

Depending on the networking package you are using (winsock or BSD
sockets, or other) you'll need to find an appropriate newsgroup. Try
searching Google Groups for the functions you're using.

Just as an aside, and OT, normally the way it works is that one entitiy
"listens" on a port, those interested in contacting it connect to that
port. I doubt you really need to do what you are asking, but here isn't
the place to discuss it.

Brian
Nov 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
21
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
0
by: per.bergstrom | last post by:
To whom it may concern, The serial port server 'cnhd38' has been terminated (on who's initiative, I don't know). It affects the users of the (at least) following nodes: cnhd36, cnhd44, cnhd45,...
2
by: KevJB | last post by:
I must say I'm new to these Raw sockets in C# and unfortunantly I haven't met anyone who is a expert in them which makes trying to develop any rather difficult. What I've been doing is trying to...
6
by: kai | last post by:
Hi, I was tring to run an example (HelloWorld.aspx) from MSPrss book, I get this message: "ASP.NET Development Server faild to start listening port 1034. Error message: An attempt was made...
0
by: Jack | last post by:
I am receiving a XML file from a service/port. Based on the contents of the xml file, I need to post back a success or failure message. I need to do that through my dotnet program. Can someone...
4
by: H J van Rooyen | last post by:
Hi All, I am writing a polling controller for an RS-485 line that has several addressable devices connected. It is a small access control system. All is well- the code runs for anything from...
25
by: bmearns | last post by:
Is it possible to specify which port to use as the outbound port on a connection? I have the IP address and port number for the computer I'm trying to connect to (not listening for), but it's...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
0
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...

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.