I need a help in creating a socket server ...

Hi
i need a help with creating a server that listen to a port(specified one). when the connection occured from the client, it should respond with a random number generator only.
it's a socket program.
thank u very much

kiiwii14 wrote:
i mean i didn't take java yet in the college. and, i'm gonna take it next course.
and,the Dr. gave us an assignment to do it in java. and, i ask him to do it in other language(c++) but he insist to do it in java. so, i'm asking for help...
i hope it's clear know...If you know some c++, the learning curve doesn't have to be very steep. If you haven't got an IDE yet, that's the first thing to do - Eclipse is free and quite good. Ask it to create a new class, e.g. NumberServer and have the option to create a main method checked. Finish the server part first - you should be able to communicate with it through telnet. Put in a lot of System.out.println so you see what your program is doing, or better yet, learn to use the IDE's debugger - which is good in Eclipse. Read the javadocs for the classes mentioned in an earlier response, and search this forum or Google for their usage if you find the documentation lacking. Then when you have specific problems that you need help with, you can create new questions for them here.

Similar Messages

  • Need some help in creating Search Help for standard screen/field

    I need some help in adding a search-help to a standard screen-field.
    Transaction Code - PP01,
    Plan Version - Current Plan (PLVAR = '01'),
    Object Type - Position ( OTYPE = 'S'),
    Click on Infotype Name - Object ( Infotype 1000) and Create.
    I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
    I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
    I specify again, I have to add a new search help to standard screen/field and not to enhance it.
    This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
    There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
    It's urgent.
    Thanks in advace. Suitable answers will be rewarded

    Hi Pradeep,
    Please have a look into the below site which might be useful
    Enhancing a Standard Search Help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
    edc983384237
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
    If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
    timepoints
    The following timepoints are defined:
    1. SELONE
    Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
    Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
    The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
    2. PRESEL1
    After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
    3. PRESEL
    Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
    4. SELECT
    Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
    5. DISP
    Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
    6. RETURN (usually as return value for the next timepoint)
    The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
    It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
    7. RETTOP
    You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
    8. EXIT (only for return as next timepoint)
    The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
    9. CREATE
    The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
    The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
    10. APP1, APP2, APP3
    If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
    Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
    If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
    F4IF_SHLP_EXIT_EXAMPLE
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several
    events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
    Hope this info will help you.
    ***Reward points if found useful
    Regards,
    Naresh

  • Need a help to create user and assign BP to it

    Hi,
    I have requirement to create Users (like SU01) in CRM and for that users need to create BP with role EMPLOYEE and assign BP to that USER.
    Can anybody please help on which Function Module I need to use to create user and assign BP to it.
    Thanks in advance..
    Sushant

    Hi,
    Many post post are there for your query in SDN search if my below shown link is not helpful.
    Hope the below will help you.
    Users Created ...
    Cheers!!
    VEnk@

  • I need some help , for create some paper on air

    Hi everyone
    I need some help , i work in a static sequence from Tehran street (1 frame), i paint damages on this frame in Photoshop because i need war atmosphere, then i add some smoke and cloud with particular .
    but i think this sequence is not realistic yet
    now i want add some moving paper in air and on street
    do u have any solution for how can i make this paper and moving those
    Thanks a lot
    and pardon me for bad English
    Ali Molavi

    The best tool to add this kind of particle is After Effects.
    If you have the Creative Cloud then I recommend you download that.
    Slightly annoying voice over, but here is a youtube tutorial you can follow top make floating particals. You can adjust it to make it look exactly as you want.
    http://www.youtube.com/watch?v=dq2op6yqvFk&noredirect=1

  • I need some help to create more space on my hard drive-what can I delete?  I have my external G-DRIVE connected as a back up, so i think I'm duplicating a lot of back up files, mostly photos through Lightroom on my Mac HD. Only 9GB left out of 297GB...

    Have never had to retrieve backed up files so I think I'm just chicken to delete files on my Mac.  Is everything on my back up if I need it?  Even photos that have been processed in Lightroom?  Could I delete all older photo folders from my Mac and still get them from external drive if I needed them down the road?  I have run a GrandPerspective scan and it appears most of my disk space is used for photo files and back-ups...probably have 30,000-40,000 photos.  Thanks!

    Look at getting Onyx, as you have alot of photo's, and so do I. Onyx will help clear somethings from you Mac, all you have to do is run Automation, and or Cleaning. Is that 30,000-40,000 Photo's Duplicates? if so, you might want to delete as many as the those duplicates as possible. i see you use Lightroom, are you useing that to import your images or are you useing something else like Iphoto, or just importing them to your mac. if you are using something else to import your photo's and then reimporting them, this might create duplicates of images. also sometimes when you delete images you dont want, they might not be acctually deleted. so clear you Trash, and run onyx to help clear these things up.
    I know there are a few different programs out there that will help clrear out duplicates of items, and help you reduce space.
    Duplicate-Annihilator Looks for images in Iphoto that are the same, and allows you to change them or delete them.
    http://www.macupdate.com/app/mac/18748/duplicate-annihilator
    TidyUp ($$) Will look for Music, Pictures Documents, or any duplicates.
    http://www.hyperbolicsoftware.com/TidyUp.html
    Hope This Helps you.

  • Need some help in creating client proxy to call webservice

    Hi experts,
    I am new to ABAP so couldnt understand the SAP ABAP jargons.
    On of my colleague has written one search help exit function and i need to use that and have to write client proxy to establish connection to webservice.
    I never worked on proxy or webservice so, struggling to understand the concept and steps.
    I am following second part i.e Release 640 part of /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap weblog.
    I couldnt find "To get the process started, we turn to our old friend SE80. <b>From the Enterprise Services Tab, we are going to select Client Proxy and then hit create"</b>
    when i go to transaction se80 ObjectNavigator, i could see two dropdown lists after some tabs.
    in first list, I have selected, "Application Hierarchy", and in second I am selecting "Package".
    Not sure whether its correct or not.
    Once i do this i could see long list of <b>Object name and its description.</b>
    Now, what should i do ? where should i go for "Enterprise Services Tab" to create my proxy.
    Any help would be appreciated.
    Please send me PDF, having detailed steps to create client proxy.
    Thanks,
    Pranav

    Right click on the package and select Proxy object. In the Wizard select Service Consumer.
    then give the url of the WSDL file you want to access or path if u have a local file.
    then give the package for client proxy.
    then complete the wizard. the  client proxy will be create in that package.
    Next step will be creating a Logical Port using the transaction "lpconfig". Give the proxy name of the service interface created under client proxy. and set the configuration as follows.
    1. Make as a default port.
    2. in the URL, give the url of the webservice (.asmx)
    3. select "State Enabled" and "Message ID"
    and after creating a logical port,  set the proxy settings as in your webbrowser.
    (Http proxy server and port).
    then simply execute your webservice from SE80.

  • Need urgent help with creating .war file ...

    My boss gave me one day to create an app. that runs on Apache Tomcat 4.0.6. I managed to get it done, but now I'm trying to move it from my machine to the web server. Each time I try to create a .war file I get an error saying "no such file or directory". Am I missing a step here??
    What I do is: go to the webapps/<appname> directory where the app. is located, type in jar cvf * path/to/application/appname.war.
    I then get the "no such file..." message, then a message that says "added manifest" then lines on the screen that say adding: blah blah file. It goes through all the files in my app directory but I get no resulting .war file.
    I'm so frustrated and confused at this point, any help would be greatly appreciated.

    >
    What I do is: go to the webapps/<appname> directory
    where the app. is located, type in jar cvf *
    path/to/application/appname.war. No need to create an intermediate zip file, or to use JDeveloper to create a simple war file.
    You just need to put the WAR name before the list of files.
    jar cvf appName.war *

  • Need Some Help in creating chart description is long thanks for ur time.

    Hi, I was asked to create a chart for an existing report which is Average number of days open versus Profit Center.
    I need to calculate Average number of days open as a sum of {command.Days_Opened}/Record Count.
    Record Count = number of records with days open <> 0 in a group
    I created a running total name Evalution and put it in details with formulae
    whileprintingrecords;
    Numbervar i;
    if (command.days_open) <> 0 then
      i := i+1;
    else
    i
    In group headder i put @reset with the following syntax: whileprintingrecords; Numbervar i := 0;
    in Group footer again Display with formulae whileprintingrecords; Numbervar i;
    so i finally got avg. number of days open as Sum of {command.Days_Open}/@dispaly
    tested the formule and is working well.
    But the problem is this formulae doesnt work in chart. How can i resolve this problem

    Sandeep,
    Your question was posted in the "General" forum, however, it appears that you have a specific question centering around an application.  I would suggest that you close this entry and re-post your question in the applicable forum (for example, Crystal or Web Intelligence, etc, etc).
    Thanks,
    John

  • Need urgent help in creating report

    i have two facts
    number of open bugs
    number of closed bugs
    i have a status column (status of bug)
    now i have to create a report (chart) which shows me number of open bugs and number of close bugs. The main problem here is i want to filter open bugs as those which have status say 10 and 11
    And closed bugs those which are in status say 90 and 92.
    So, hoiw to create this type of report..?
    any help in this direction will be a great contribution ,,,,
    Vik

    Here´s the sintax:
    CASE expression1
    WHEN expression2 THEN expression2
    {WHEN expression... THEN expression...}
    ELSE expression
    END
    It would be something like this:
    CASE status WHEN 10 THEN open_bug
    WHEN 11 THEN open_bug
    WHEN 90 THEN close_bug
    WHEN 92 THEN close_bug
    ELSE 0 END
    Set the aggregation rule to SUM.
    Regards.

  • Need ur help to create sl statement in jsp

    hello experts
    plz tell me how i can create a table in MS-ACESS with the help create table command (i want to create dynamic table within my jsp page)
    i tried this command
    String query3 = "CREATE TABLE Friends(message memo,author,text,postdate text,)";
    but it was not working plz help me

    is it giving you any error ?
    If yes , then please give the error message details

  • I need some help on creating a query

    This is my first crack at writing query's.  
    I am trying to create a query for a list on clients with a file name on the system. I found a lot of samples on the web, however i keep getting errors on all of them. 
    Here is on sample:
    select SMS_G_System_COMPUTER_SYSTEM.Name, 
    SMS_G_System_SoftwareFile.FilePath, SMS_G_System_SoftwareFile.CreationDate, 
    SMS_G_System_SoftwareFile.FileDescription, V_R_System.ResourceType, 
    V_R_System.ResourceId from V_R_System inner join SMS_G_System_COMPUTER_SYSTEM on 
    SMS_G_System_COMPUTER_SYSTEM.ResourceID = V_R_System.ResourceId inner join SMS_G_System_SoftwareFile on 
    SMS_G_System_SoftwareFile.ResourceID = V_R_System.ResourceId where SMS_G_System_SoftwareFile.FileName = "test1234.exe" 
    First i was getting an error:
    Invalid object name 'SMS_R_System' and i had to change to V_R_System instead of SMS_R_System. "Is it because
    SQL and WQL difference?????"
    Now i am getting Invalid object name 'SMS_G_System_COMPUTER_SYSTEM' "Here is where i am stuck"
    If possible i would like to explanation as well "maybe some good links", please keep in mind just getting started with query's.
    Thanks for the help.
    I am writing/testing query in sql management studio.
    If there is a better way or a tool please let me know.

    The application i am looking for does not show up in ADD/REM.
    I was asking what is the difference between V_R_System instead of SMS_R_System?
    And what should i use instead of SMS_G_System_COMPUTER_SYSTEM?
    Maybe you can share some links so i can read a little more?
    Thank you.

  • Need a help to create ejb application in netbeans with weblogic 9.2

    Hi guys,
    I am new to EJB..can anyone guide me to create a EJB application in netbeans 5.5 with weblogic server 9.2 ..
    thank u in advance..

    Hi guys,
    If there is no one to help me with this so simple project then I will have to quit trying. I am getting to much pressure to get this done and I just don't know how to proceed anymore. I have found a document on OTN that explain the basics of binding but it's to vast and too complicated under pressure. If someone could help me to bind this LOV I would appreciate this so much and then I could relax a little and read all the good documents that I have found on OTN.
    This is my last chance.
    Thank you!

  • Hi friends need some help while creating background job

    I need to run a batch report in background in SM36 when any cancellation of sales order is done in VL09.
    i.e when a cancellation of sales order is done i have to run a batch report which will call an IDOC outbound generation function module that will create the IDOC.....
    Please tell me how to do this.....

    Hi,
    To submit backgroud jobs.
    Call Function 'Job_Open'.
    SUBMIT <report name>
    WITH <input variants>
    USER sy-uname
    VIA JOB <job name>
    AND RETURN.
    If sysubrc eq 0.
    Call Function 'Job_Close'.
    Reward if helpfull.

  • Plz need ur help in  creating universe

    hai friends
            i am shashank reddy i am new to boxi
    bcz i am a s/w testing engineer , i am interest change to boxi 
    could u explain me creating universe process in live environment(realtime) and also sent me some sample specifications,bcz i am very much knowledge in bo6.5,xi
    but i dont no realtime knowledge? for i got job (how to do job in office )
    is there any specifications, who woll give u this specs to bos developer.
    my
    email id: [email protected]
               [email protected]    mail me the sample specifications   
    this is very very appreciated ur nice help  
    thanks in advance
    regards
    shashank reddy.m

    Hi Shashank,
    Please refer this link and download the ppt file from here as well.
    http://diamond.businessobjects.com/node/3885
    Also, refer the book "Business Objects Complete Reference" for more clarity about the universe.
    This will be helpful to you.
    thanks,
    Amzad Basha.

  • I need some help to create service product in crm 2007

    Hello everybody
    I 'm new to crm 2007.
    Now I met a problem.
    Can somebody give me some advice. Thanks.
    I want to write a programm to create service product.
    But I don't know  function modul  which I can use.

    Hi ,Garcia   
    Thanks for your reply.
    I have tried that method,but met a error in sap function modul.
    My crm's version is 2007.
    Is there any othor method or fm?

Maybe you are looking for

  • OBIEE 11.1.1.5 and OBIEE 11.1.1.6 Installation on same system.

    Hi All, Is it possible to have OBIEE 11.1.1.5 and 11.1.1.6 on same system? I know this is not practical and kind of unrecommended thing to do. But we have an OBIEE 11.1.1.5 instance installed on a server. And we don't want to deinstall it. Rather, if

  • Raw images

    My Photoshop elements 8 won't let me open my raw images. I have done it before but recently had my computer cleaned up. How can I fix this?

  • Webservice not returning a String

    I am running this block of code against an asp.net web service. When I test the service through Internet Explorer, it returns; <string xmlns=" http://tempuri.org/">Success</string> So I know its return "Success" as a String. I created wsOwners as a S

  • Levels in the TOC?

    How many numbering levels are supported in the TOC? In portrait author mode I can see my TOC taking shape as I add Chapters, Sections, and Headings.  Within a Section I now have several TOC entries which I have defined with Heading 1, and these are l

  • Overlay two images in the same container

    Hi, I don't know if it's possible, but in my webdynpro application I have a transparent container with an image, amont other stuff, inside. I've created the image as a cl_wd_link_to_action object, because when the user clicks over it, an action is tr