Starting out on sockets

Hi,
I'm just starting out on the subject of sockets by working through the trail 'Custom Networking'. But now it says:
"... The example program uses the host name taranis. This is the name of a hypothetical machine on our local network. ... change the host name to the name of a machine on your network..."
As I am working on a standalone machine most of the time, is there any way for me to simulate this? Can I call my own ports or install a piece of software that acts as a server?
Thx,
Jan

Ehm, could you give me an example? How do I translate
the example
Socket echoSocket = new Socket( "taranis", 7
to my own situation? In other words, how do I find
out which hostname to use for my PC?
(I am a beginner on this subject :-)Sure. The Socket initialization line would be:
Socket echoSocket = new Socket("localhost", 7);
I.e., just replace their example hostname with localhost.
That "7" is what is called the Port number. A Port is like a TV channel - it explicitly describes a particular connection on a networked machine. There are thousands of ports available (I think 64K are available, but it may be "just" 32K), and the lower 1K ports (1-1024) are reserved for system protocols (email, web, telnet, etc).
I'll just tell you now. Access to the first 1K ports is restricted to system-level permissions (root/Administrator). May I suggest changing the 7 to 1700? (1700 is arbitrary). When you go to write the server-side code, also use 1700. This will save you a "mysterious" problem when you get around to the server side.
-Brent

Similar Messages

  • Error "KSRPC.SendPacket: Timed out on Socket header" when stopping iAS

    I am using iAS 6.5 on Win2k. I frequently get this error when stopping the app server:
    KSRPC.SendPacket: Timed out on Socket header
    Any ideas? Anything to worry about? Thanks.

    I wouldn't worry about it if you only see the error when shutting down I also sometimes get the error. If you see the error when starting you could have problems as the kas would possibly not know some or all of the engines are running

  • My address book and iPhone pics have become low resolution.  Is there a way I can prevent this from happening when I start out with a higher resolution picture?

    I guess I squeezed my entire issue into the subject line.  lol   When I sync my iphone to my laptop I notice that all my address book pics and iphone pics have become lower resolution, even though I started out with the resolution that I really needed to produce decenty address book printouts.  I doubt I can correct the losses of resolution that have occurred but can anyone help me figure out how to prevent future losses?  Thank you!

    Plugins usually are installed externally to Firefox. However, you can disable them in Firefox so that Firefox does not use them.
    SearchReset is supposed to automate the task of resetting certain preferences, but you still can edit them manually if necessary.
    '''''Address Bar Search'''''
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''keyword''' and pause while the list is filtered
    (3) Right-click '''keyword.URL''' and choose Reset. This should restore Google as the default for address bar search.
    Does that work?
    '''''Search Box'''''
    Usually it works to choose your preferred search engine from the drop-down. To remove an unwanted search engine plugin, usually the Manage Search Engines... choice at the bottom of the drop-down takes care of it.
    Do either of those work?
    There might be another way to hijack that search box; I think some of the other frequent responders probably are more familiar with it than I am.

  • I'm new to mac. Just started out. Have OS 10.8.3. I have an HP 1315 printer.  It prints and copies, wont scan.  I see old threads on this, nothing recent.  ?can i make this work, or do i need a new printer??

    I'm new to mac. Just started out. Have OS 10.8.3. I have an HP 1315 printer.  It prints and copies, wont scan.  I see old threads on this, nothing recent.  ?can i make this work, or do i need a new printer??

    Hi Newbie111
    I see that you are unable to scan with the Photosmart 1315.
    What driver are you using?
    The driver listed in the url below is a basic print driver that will allow you to print only.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ps242muc&c c=us&dlc=en&lc=en&os=1006&product=61956&sw_lang=
    You can try using the apple drivers in the url below.
    http://support.apple.com/kb/DL907
    If you have any further issues please let me know.

  • XBMC: HDMI audio starts out OK, then gets distorted after few minutes

    Hi,
    I have posted about this on the XBMC forums, but one of the developers kindly informed me that they do not support XBMC on Arch Linux in any way, so I should take my queries elsewhere. I am hoping that someone here might be able to shed some light on my issue.
    I am trying to use XBMC 13.1 (xbmc-13.1-2) with Samsung EH5300 32" Smart TV (2013 model) over HDMI connection. The HTPC computer is AMD-based (AMD A4-5300 APU, which includes Radeon HD 7480D GPU), and runs an up-to-date Arch Linux (last full system upgrade on 2014-06-26). I am using the open source "radeon" driver (xf86-video-ati-1:7.3.0-1). Everything has been great except the sound:
    The sound starts out fine, but a few minutes later it begins to get distorted. At first it sounds like reverb affecting voice only, but with time the distortion increases until it sounds kind of cued TV noise. If I restart the video, the sound works again for a while. If I change options in Settings -> System -> Audio Output, like the number of channels or pass-through, the sound is again good for a little while. If I enable or disable "Stereo Upmix" or change audio stream from the "Audio - Settings" dialogue window available during video playback, it too seems to "reset" the sound to sounding normal for a while.
    Has anyone seen something like this?
    I have tried different videos, and it seems like HD videos are affected more than SD videos, starting with distortions only a few minutes in (except the one Xvid video, which was fine for 15 minutes). Some SD videos are completely fine, some start having distortion issues only after 20 minutes or so. Judging from video information, if the video uses 5.1 channels (all HD videos fall in this category), it definitely gets distorted; if a video only uses 2.0 channels (like the SD videos), some are fine while others get distortion later on. I have "Number of channels" in Audio Output settings set to 2.0. Changing this (or any other audio settings) has not affected the distortion.
    Following Arch Wiki: Radeon note about HDMI audio, I tried adding radeon.audio=1 to the kernel line; this did not solve the issue, just added some visual glitches.
    In the XBMC debug log I posted, the distortions happen at around 17:26, though there is absolutely nothing logged at that time, even though I enabled "Verbose logging of AUDIO component" in the Debugging settings. The video I was playing there showed the following in the information window: 720 H.264 dts 5.1 16:9.
    Any suggestions, ideas, or experiences would be appreciated. It definitely seems to be XBMC issue, since I was able to play the same HD video through mplayer without any problems (for at least half an hour, which would have already showed distortions several times through XBMC).

    Hi GDykes,
    OK Imagine that Connection speed from your ISP is like an empty freeway. You can go full tilt (upto that road's speed limit)
    Bandwidth is like a busy freeway where you only get to go as the bit you are in allows.
    Reducing the Bandwidth in iChat or in the System Preferences > Quicktime > Streaming tab is like a vehicle that has a maximum speed that is slower than the speed possible on the freeway.
    10:02 PM Friday; July 6, 2007

  • Why do Certain fonts change when I convert to PDF from Microsoft word?  They start out 60s chic and end up as a standard font.

    Why do some fonts change when converted from Microsoft word to PDF?  It starts out as 60s chic and changes to standard font.

    Related to the question, I suspect you have licensed fonts that cannot be embedded. Thus, the PDF is using what it is finding to be an equivalent as well as it can guess. Did you check the font list in the PDF?

  • Lightroom 5 version 5.0 starts out fast, but then slows my computer to a crawl.  What to do?

    I upgraded from Lightroom 4 to Lightroom 5 after the release version 5.0 came out.  But it doesn't work well.  It starts out fast, but performance rapidly deteriourates.  And it affects every application running on my Windows 7 PC.  I assume this is due to massive memory leaks.  The only way out seems to periodically reboot my machine. 
    I've had this happen without doi
    ng exports (which was reported as a cause of this behavior by others).  I get it just using the Developer module and having many steps with many photos.  Also with the Book module it happens very soon.  Does anyone have a workaround until Adobe actually fixes their product so it works right?

    I'm having the same issue.  I'm running the trial version, but in 3 days when the trial is over I don't expect to upgrade.  LR4 works great on my machine.  LR5... there's a problem here Houston.  Fix it and then I'll think about upgrading.
    BTW - the tool I had high hopes for - the enhanced spot heal/clone tool... good idea, but needs work.

  • Chat Video quality starts out fine, then fades ...

    My video starts out good, then after a minutes or so, the picture gets pixelated and the audio garbled. The person on the other end has no such issues and can see/hear me just fine.
    In iChat, my bw is set to 'none'. In system preferences, my Quicktime streaming speed is 1.5 Mpbs.
    Thanks,
    - Greg

    Hi GDykes,
    OK Imagine that Connection speed from your ISP is like an empty freeway. You can go full tilt (upto that road's speed limit)
    Bandwidth is like a busy freeway where you only get to go as the bit you are in allows.
    Reducing the Bandwidth in iChat or in the System Preferences > Quicktime > Streaming tab is like a vehicle that has a maximum speed that is slower than the speed possible on the freeway.
    10:02 PM Friday; July 6, 2007

  • Just Starting out with java packages

    Hello,
    I'm a beginner and I'm starting out with java packages.
    I wrote two simple .java files, one test program and one containing a simple class.
    Both files are compiling without errors but When I run the program I get an error NoClassDeffoundError.
    I use the import <package> statement And I think I'm using the CLASSPATH variable correctly.
    SET CLASSPATH=d:\nopol
    path for the .java containing the test class is:
    d:\nopol\utilities \myapp.
    In the test file I use "import utilities.myapp.*.
    I would be very happy if anyone could help me
    Thanks beforehand
    Nopol.

    The test file should be in d:\nopol, if it's not a part of your package utilities.myapp. Everything should be compiled from d:\nopol, the test class with "javac ClassName.java" and the class in the package with "javac utilities/myapp/ClassName.java".
    Your classpath seems fine for now, though. But yes, do add the period there, otherwise you could run into problems later.

  • Upon start up of my laptop I get a APS Daemon.exe system error - MSVCR80.dll is missing.  This just started out of the blue.  At one point it told me to reinstall ITunes.  Is that truly necessary?

    Upon start up of my laptop I get a APS Daemon.exe system error - MSVCR80.dll is missing.  This just started out of the blue.  At one point it told me to reinstall ITunes.  Is that truly necessary?

    I have the same issue after installing the new update and reinstalling iTunes doesn't fix the issue.
    I found disabling Apple push (APSDaemon.exe) from the start up will stop the error from appearing, however this will disable wireless syncing. If you don't use it than it shouldn't be an issue.
    I'm using a PC so you can disable it using the msconfig command and turning it off in the Startup tab. I don't know if Mac users are experiencing the same issue. Hopefully Apple will fix it in their next update.

  • Listener starting out of ASM home?

    Hello,
    I have a fresh install of 10.2.0.3 RAC running on Solaris 2.9.
    We have older 10.2.0.3 RAC installs where the ASM HOME and the RDBMS HOME(10.2.0.3) shared the same home and our Listener started under the .../10.2.0/network/admin directory like any other stand-alone database.
    We separated the ASM HOME and RDBMS home on our new install and the Listener now automatically starts out the ASM HOME instead during bootup.
    Is it okay to run the Listener out of the ASM HOME? It appears to work but our GRID is finding Listeners under both spots (RDBMS and ASM HOME)
    Can I changed it to start out of the RDBMS home like all our other Listeners? If so, where does Oracle look during bootup of RAC to set this and how can I change it?

    Thanks for the quick response Kevin.
    I've ran your command and found:
    NAME=ora.snapdragon1.LISTENER_SNAPDRAGON1.lsnr
    TYPE=application
    ACTION_SCRIPT=/u01/app/oracle/product/asm/bin/racgwrap
    NAME=ora.snapdragon2.LISTENER_SNAPDRAGON2.lsnr
    TYPE=application
    ACTION_SCRIPT=/u01/app/oracle/product/asm/bin/racgwrap
    So it appears that the variable ACTION_SCRIPT is being set to the ASM home during CRS startup which would explain why it's using that home.
    Is there a way to change that variable? I'd like to start the listeners out of the RDBMS home like all my other databases.
    I'll dig around and post back here if I find it first.
    Thx,
    Gary

  • I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!

    I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!

    I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
    Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
    The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
    Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
    http://DingDingMusic.com/Manuals/

  • IPhoto Pictures Start Out Blurry And Become Clear 10 Seconds Later

    I've long been aggravated by the fact that when I'm browsing images in iPhoto, they start out looking pixelated and low-res for about 10 seconds before becoming clear. If I'm in Organize or Edit mode, and have the picture on the screen full sized, and then I hit the right or left arrow, I get an ugly, pixelated enlarged thumbnail and then about 10 seconds later the high-res version finally loads and it looks clear. This makes browsing my photos a real pain, as I have a 10 second wait before I can see each picture in high-res. This has always been a problem with iPhoto - every version I've had since it came out.
    How do I fix this? Is the app just horrible at memory management? I have a very fast computer. Can't iPhoto anticipate that I'm going to view the next photo over (left or right) and pre-load the large size before I get to it?

    There is a lot less lag on later versions. Face it, iPhoto 4 hasn't been in active development for more than 6 years. I wouldn't hold my breath on an update.
    Regards
    TD

  • Does anybody know to have a video of my face and make it start out as a blk

    Does anybody know to have a video of my face and make it start out as a black screen the make it gradually have a white line come up my face?(like the show on cartoon network, is it called "Fosters"?)

    You can do this if you create a key with your face or start with green screening it.
    Use a garbage matte if it is static.

  • 648f neo - starting out with 200gb ok?

    once i get my pc done, is it ok to start out w/ a 200gb drive? during winxp installation, would it identify it? what abouot bios mode?

    You can install Windows XP with the 200GB hard drive without a problem, but it would need to be partitioned under the 137 GB limit. So if you set up multiple partitions than it won't be a problem. If you want to do the full 200GB as one hard drive you will need to slipstream your copy of windows xp to include SP1. Best way to do that is do a google search for "slipstreaming windows xp sp1".
    In case you didn't know slipstreaming will allow you to merge SP1 files into the windows cd so when you install windows it will already have SP1 installed. The same process works for SP2 (if you are willing to give it a shot)

Maybe you are looking for

  • Dynamic column change in Alv

    Hello friends,                    Can any1 pls tell me if there is a function module available which can be used for dynamic column change in ALV.                   Pls also elaborate how to use it.....

  • Registering Report Writer in Portal 10g

    Portal 10g AS software is fairly new and not a lot of books are available for it. I am looking for a guide or proper steps to registering the Oracle Report Server with Portal 10g. I have looked at this doc: http://download-uk.oracle.com/docs/html/B14

  • Levenberg Marquardt: how to use a decimal as an exponent? it only works with integers!

    Hi, I use LV 6.1 and I want to use the Levenberg-Marquardt algorithm to extract the best fit coefficients for the following equation: Y =A*(X-B)^(1.7) The data I input are X and Y (that I know)  and I expect the vi to display A and B. I also input ap

  • .ase file

    I created a logo in Illustrator CS4 and saved the swatch set as an .ase file to use with the other adobe products. When I went to load the ase file into Fireworks CS4 I can't seem to find it. How can I accomplish this? I was looking thru the forums a

  • Send Smart Form to Spool only

    Hi, I need to send a smart form to spool only. It's not to be printed. I have set the following: no_dialog = 'X'. tdnoprev = 'X'. tdnewid = 'X' tdimmed = ''. and it's sending the smart form to the spool and printing it at the same time. Anybody can a