Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3991718
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:38:58+00:00 2026-05-20T06:38:58+00:00

I made a custom server that accepts TCP connections on a certain port. I

  • 0

I made a custom server that accepts TCP connections on a certain port. I made a corresponding client that sends data to the server. The client writes to the socket and the server seems to accept it. In short, the server / client rig works. Now I want to re-create the client only this time, via Flex 4 / Flash Builder 4. How do I go about making my Flex 4 app connect to my custom server?

I used the following approach:

<fx:Declarations>
     <s:HTTPService  id="initialConnection"
                     url="theserverip:theserverport"
                     resultFormat="text" requestTimeout="5" showBusyCursor="true"
                     result="initialConnection_resultHandler(event)"
                     fault="initialConnection_faultHandler(event)" >
     </s:HTTPService>
</fx:Declarations>

With that type of approach, the server doesn’t seem to be receiving any connections at all. And also, even though I set the requestTimeout to 5, my Flex app seems to continuously try to connect to the server because I rigged it so that the button when clicked will call this HTTPService also that certain button would get disabled and it will get enabled again after it the connection successfully connects, returned an error or if it timed out.

So with all these said, I want to ask you, what is the best approach to making my Flex app connect to my custom made server? Also I’m not really experienced with Flex so please try to elaborate on the answer.

Thanks in advance! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T06:38:59+00:00Added an answer on May 20, 2026 at 6:38 am

    If you wrote a custom server that accepts TCP connections on a specific port, you probably don’t want to use HTTPService, which specifically send HTTP Requests. Based on your post, I assume your custom server would not know what to do with an HTTP Request.

    I suggest looking into sockets and how they are used in the Flash Player. Since you already have a working client, I would expect it shouldn’t be too hard to convert it to ActionScript. My impulse is that if you can implement your client library without any Flex framework dependencies you’ll be better off in the long term.

    All that said, I’d suspect that in 99% of the case, building your own server–and client–from scratch is probably not needed. There are plenty o existing server products that provide plenty of ways to get data back and forth.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've made a custom DataGridViewCell that displays a custom control instead of the cell;
I want to verify that my custom-made error pages return the correct HTTP status
I've made a custom control that inherits from a Literal control. When I try
I have a wordpress blog. I made a custom page-template that allows users to
I made a custom http server using java. It runs properly on XP machines
For learning purposes I am writing a socket based client/server application. I have designed
For learning purposes I am writing a socket based client/server application. I have designed
I made a custom TObjectList descendant designed to hold subclasses of a base object
I've made a custom control with values for start, current, and end times. The
I have made a custom UserControl i Vb.net (windows application). How can I add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.